/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session;

import Entity.Address;
import javax.ejb.Local;
import Entity.SalesLead;
import java.util.ArrayList;
import util.exception.ConversionException;
import util.exception.ExistException;
import util.exception.LeadConflictException;

/**
 *
 * @author cheeseng
 */
@Local
public interface SalesLeadSessionLocal {

    public ArrayList<SalesLead> getAllLeads();

    public Boolean checkConflictLead(String company) throws Exception;

    public Long createLead(String salutation, String contactperson, String company, String comAddress1, String comAddress2, String comPostalCode, String comCountry, String phone, String email, String description) throws Exception;

    public boolean updateLead(long leadId, String salutation, String contactperson, String phone, String email, String description) throws Exception;

    public boolean removeLead(long LeadId) throws ExistException;
}
